<?php

class Twis_Handler_Logout extends Twis_Handler_Base
{
    public function execute()
    {
        $proxy = $this->getProxy();
        $sessionKey = $this->getSessionKey();
        //$proxy->call('social.user.logout', array($sessionKey));
        $this->removeSessionKey();
        $url = $this->getUrl()->href('index');
        return $this->getResponse()->redirect($url);
    }
}
